
#include "Hardfault_debug.h"


void Hardfault_debug_Fun2(void)
{
  volatile unsigned int* ptr = (unsigned int*)0xffffffff;
  *ptr = 0x12345678;

  unsigned int b_var1 = 0xB1111111;
  unsigned int b_var2 = 0xB2222222;
  if ( b_var1 == 0xB1111111 && b_var2 == 0xB2222222 ) {
    unsigned int b_var3 = 0xB3333333;
  }
}


void Hardfault_debug_Fun3(unsigned int var1, unsigned int var2, unsigned int var3, unsigned int var4, unsigned int var5)
{
  unsigned int c_var1 = var1;
  unsigned int c_var2 = var2;
  unsigned int c_var3 = var3;
  unsigned int c_var4 = var4;
  unsigned int c_var5 = var5;
  
}


void Hardfault_debug_Fun1(void)
{
  unsigned int a_var1 = 0xA1111111;
  unsigned int a_var2 = 0xA2222222;
  unsigned int a_var3 = 0xA3333333;
  unsigned int a_var4 = 0xA4444444;
  unsigned int a_var5 = 0xA5555555;

  Hardfault_debug_Fun3(a_var1, a_var2, a_var3, a_var4, a_var5);

  if (a_var1 != 0 && a_var2 != 0 && a_var3 != 0)
  {
	  Hardfault_debug_Fun2();
  }

}









